package com.pie4cloud.pie.dmz.controller;

import com.pie4cloud.pie.common.core.util.R;
import com.pie4cloud.pie.dmz.dto.SystemInfoDto;
import com.pie4cloud.pie.dmz.service.SystemMonitorService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequiredArgsConstructor
@RequestMapping("/monitor" )
public class MonitorController {
	@Autowired
	private SystemMonitorService systemMonitorService;
	@GetMapping("/getSystemInfo" )
	public R<SystemInfoDto> getSystemInfo() {
 		return systemMonitorService.getSystemInfo();
	}
}
